<h2><?php echo $this->translate('Manage portfolios'); ?></h2>
<table id="list2"></table>
<div id="pager2"></div>
<br />
<center>
    <input type="button" value="<?php echo $this->translate('Create portfolio'); ?>" onclick="window.location='/mgmt/portfolio/edit'" />
</center>

<?php $this->jQuery()->onLoadCaptureStart(); ?>
jQuery("#list2").jqGrid({
    url      :'<?php echo $this->url(array('controller' => 'portfolio', 'action' => 'ajaxlist')); ?>',
    datatype : "json",
    colNames :[
        '<?php echo $this->translate('Portfolio ID'); ?>',
        '<?php echo $this->translate('Portfolio code'); ?>',
        '<?php echo $this->translate('Portfolio icon'); ?>',
        '<?php echo $this->translate('Portfolio title'); ?>',
        '<?php echo $this->translate('Enabled'); ?>',
        '<?php echo $this->translate('Action'); ?>'
    ],
    colModel :[
        {name:'id',      index:'id',      width:100, align:"center"},
        {name:'code',    index:'code',    width:150},
        {name:'icon',    index:'icon',    width:100, sortable:false, align:"center"},
        {name:'title',   index:'title',   width:150},
        {name:'enabled', index:'enabled', width:70, align:"center"},
        {name:'action',  index:'action',  width:140, sortable:false},
    ],
    rowNum      : 20,
    rowList     : [20,40,60],
    pager       : '#pager2',
    sortname    : 'id',
    viewrecords : true,
    width       : 1000,
    height      : 500,
    sortorder   : "asc",
    caption     : "<?php echo $this->translate('Portfolio'); ?>"
});
jQuery("#list2").jqGrid('navGrid', '#pager2', {
    add    : false,
    del    : false,
    edit   : false,
    search : false
});
<?php $this->jQuery()->onLoadCaptureEnd(); ?>